﻿using Wicresoft.SMS.Data;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;

namespace SMS.Gateway.Host.Test
{
    
    
    /// <summary>
    ///This is a test class for ITemplateServiceTest and is intended
    ///to contain all ITemplateServiceTest Unit Tests
    ///</summary>
    [TestClass()]
    public class ITemplateServiceTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        internal virtual ITemplateService CreateITemplateService()
        {
            // TODO: Instantiate an appropriate concrete class.
            ITemplateService target = null;
            return target;
        }

        /// <summary>
        ///A test for CreateNewTemplate
        ///</summary>
        [TestMethod()]
        public void CreateNewTemplateTest()
        {
            ITemplateService target = CreateITemplateService(); // TODO: Initialize to an appropriate value
            int UserID = 0; // TODO: Initialize to an appropriate value
            string Contenct = string.Empty; // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.CreateNewTemplate(UserID, Contenct);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for DeleteTemplateByID
        ///</summary>
        [TestMethod()]
        public void DeleteTemplateByIDTest()
        {
            ITemplateService target = CreateITemplateService(); // TODO: Initialize to an appropriate value
            int ID = 0; // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.DeleteTemplateByID(ID);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for DeleteTemplates
        ///</summary>
        [TestMethod()]
        public void DeleteTemplatesTest()
        {
            ITemplateService target = CreateITemplateService(); // TODO: Initialize to an appropriate value
            int[] IDs = null; // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.DeleteTemplates(IDs);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetPageCount
        ///</summary>
        [TestMethod()]
        public void GetPageCountTest()
        {
            ITemplateService target = CreateITemplateService(); // TODO: Initialize to an appropriate value
            int UserID = 0; // TODO: Initialize to an appropriate value
            int max = 0; // TODO: Initialize to an appropriate value
            string key = string.Empty; // TODO: Initialize to an appropriate value
            int expected = 0; // TODO: Initialize to an appropriate value
            int actual;
            actual = target.GetPageCount(UserID, max, key);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetTemplatesByUserID
        ///</summary>
        [TestMethod()]
        public void GetTemplatesByUserIDTest()
        {
            ITemplateService target = CreateITemplateService(); // TODO: Initialize to an appropriate value
            int UserId = 0; // TODO: Initialize to an appropriate value
            int index = 0; // TODO: Initialize to an appropriate value
            int max = 0; // TODO: Initialize to an appropriate value
            string key = string.Empty; // TODO: Initialize to an appropriate value
            List<TemlateInfo> expected = null; // TODO: Initialize to an appropriate value
            List<TemlateInfo> actual;
            actual = target.GetTemplatesByUserID(UserId, index, max, key);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for GetTemplatesByUserIDS
        ///</summary>
        [TestMethod()]
        public void GetTemplatesByUserIDSTest()
        {
            ITemplateService target = CreateITemplateService(); // TODO: Initialize to an appropriate value
            int UserId = 0; // TODO: Initialize to an appropriate value
            List<TemlateInfo> expected = null; // TODO: Initialize to an appropriate value
            List<TemlateInfo> actual;
            actual = target.GetTemplatesByUserIDS(UserId);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for UpdateTemplate
        ///</summary>
        [TestMethod()]
        public void UpdateTemplateTest()
        {
            ITemplateService target = CreateITemplateService(); // TODO: Initialize to an appropriate value
            int ID = 0; // TODO: Initialize to an appropriate value
            string Content = string.Empty; // TODO: Initialize to an appropriate value
            bool expected = false; // TODO: Initialize to an appropriate value
            bool actual;
            actual = target.UpdateTemplate(ID, Content);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
    }
}
